/**
 * Created by imac13 on 19/1/1.
 */
import { fromJS } from 'immutable'
import {actionTypes} from './index'

const defaultState = fromJS({
    title:'',
    content:''
});


export default (state = defaultState, action) => {
    switch (action.type){
        case actionTypes.GET_DETAIL_DATA :
            return state.merge({
                title:action.title,
                content:action.content,
            });
        default:
            return state;
    }
}